package stark.app.function.calculator;

import android.view.View;
import android.widget.TextView;

import com.stark.calculator.general.AbsCalFragment;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import stark.app.R;
import stark.app.databinding.FragmentCustomCalBinding;

/**
 * Author：daizhongbin on 2021/4/15
 * Email：1027154338@qq.com
 * Desc:
 */
public class CustomCalFragment extends AbsCalFragment<FragmentCustomCalBinding> {

    @NonNull
    @Override
    protected TextView getFuncView() {
        return mDataBinding.tvFunc;
    }

    @NonNull
    @Override
    protected TextView getEqualExpressionView() {
        return mDataBinding.tvEqual;
    }

    @Nullable
    @Override
    protected TextView getHistoryView() {
        return mDataBinding.tvHistory;
    }

    @NonNull
    @Override
    protected TextView getNum0() {
        return mDataBinding.btn0;
    }

    @NonNull
    @Override
    protected TextView getNum1() {
        return mDataBinding.btn1;
    }

    @NonNull
    @Override
    protected TextView getNum2() {
        return mDataBinding.btn2;
    }

    @NonNull
    @Override
    protected TextView getNum3() {
        return mDataBinding.btn3;
    }

    @NonNull
    @Override
    protected TextView getNum4() {
        return mDataBinding.btn4;
    }

    @NonNull
    @Override
    protected TextView getNum5() {
        return mDataBinding.btn5;
    }

    @NonNull
    @Override
    protected TextView getNum6() {
        return mDataBinding.btn6;
    }

    @NonNull
    @Override
    protected TextView getNum7() {
        return mDataBinding.btn7;
    }

    @NonNull
    @Override
    protected TextView getNum8() {
        return mDataBinding.btn8;
    }

    @NonNull
    @Override
    protected TextView getNum9() {
        return mDataBinding.btn9;
    }

    @NonNull
    @Override
    protected TextView getPoint() {
        return mDataBinding.btnPoint;
    }

    @NonNull
    @Override
    protected TextView getEqualSign() {
        return mDataBinding.btnEqual;
    }

    @NonNull
    @Override
    protected TextView getAdd() {
        return mDataBinding.btnAdd;
    }

    @NonNull
    @Override
    protected TextView getSub() {
        return mDataBinding.btnSub;
    }

    @NonNull
    @Override
    protected TextView getMulti() {
        return mDataBinding.btnMulti;
    }

    @NonNull
    @Override
    protected TextView getDivide() {
        return mDataBinding.btnDivide;
    }

    @NonNull
    @Override
    protected View getDel() {
        return mDataBinding.btnDelete;
    }

    @NonNull
    @Override
    protected View getAc() {
        return mDataBinding.btnAC;
    }

    @Nullable
    @Override
    protected View getChange() {
        return mDataBinding.btnChange;
    }

    @Override
    protected void showError(Object obj) {

    }

    @Override
    protected int onCreate() {
        return R.layout.fragment_custom_cal;
    }

    @Override
    protected void initData() {
    }
}
